home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
steppenwolf_1_chapter_4.swf
/
scripts
/
frame_1058
/
PlaceObject2_3944_4
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2010-05-15
|
25KB
|
549 lines
onClipEvent(enterFrame){
tellTarget("_root")
{
if(262 < getProperty("_root.Meg", _Y))
{
setProperty("_root.Decoupe1", _visible, 0);
}
else
{
setProperty("_root.Decoupe1", _visible, 1);
}
if(129 < getProperty("_root.Meg", _Y))
{
setProperty("_root.Decoupe3", _visible, 0);
}
else
{
setProperty("_root.Decoupe3", _visible, 1);
}
if(getProperty("_root.Animatiques", _currentframe) == 1 and eval("/Variables:Stoppe") != true)
{
if(eval("/Variables:ObjetSelect") != 3 and eval("/Variables:CouvertUse") == true)
{
set("/Variables:CouvertUse",false);
tellTarget("_root.Meg.Obj.Couvercle")
{
gotoAndStop(1);
}
}
else if(eval("/Variables:CouvertUse") == false and Key.isDown(Key.SPACE) and eval("/Variables:ObjetSelect") == 3)
{
set("/Variables:CouvertUse",true);
tellTarget("_root.Meg.Obj.Couvercle")
{
gotoAndStop(2);
}
}
if(_root.CacheVersTab3.hitTest(_root.Meg._x,_root.Meg._y,true))
{
loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=17&stage=11",0);
set("/Variables:From","Tab4");
gotoAndStop("Tab3Ini");
play();
}
if(_root.CacheVersTab5.hitTest(_root.Meg._x,_root.Meg._y,true))
{
loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=17&stage=8",0);
set("/Variables:Stoppe",true);
tellTarget("_root.Animatiques")
{
gotoAndStop("MonteMarche");
}
gotoAndStop("Tab4Stoppe");
}
if(_root.CacheVersTab6.hitTest(_root.Meg._x,_root.Meg._y,true))
{
set("/Variables:From","Tab4");
gotoAndStop("Tab6Ini");
play();
}
if(_root.CacheVersTab7.hitTest(_root.Meg._x,_root.Meg._y,true))
{
loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=17&stage=5",0);
set("/Variables:From","Tab4");
gotoAndStop("Tab7Ini");
play();
}
if(!Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up) and Idle == false)
{
Idle = true;
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Idle");
play();
}
}
if(Key.isDown(Key.SHIFT))
{
set("/Variables:Run",true);
}
else
{
set("/Variables:Run",false);
}
if(Key.isDown(Key.RIGHT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))
{
if(Key.isDown(Key.CONTROL))
{
if(eval("/Variables:Dir") == "Right")
{
set("/Variables:Dir","Right");
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
set("/Variables:Dir","Right");
tellTarget("_root.Meg")
{
gotoAndStop("Right");
}
}
}
else
{
set("/Variables:Dir","Right");
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("Right");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
{
if(eval("/Variables:Run") == true)
{
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
}
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
}
}
}
if(Key.isDown(Key.LEFT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))
{
if(Key.isDown(Key.CONTROL))
{
if(eval("/Variables:Dir") == "Left")
{
set("/Variables:Dir","Left");
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
set("/Variables:Dir","Left");
tellTarget("_root.Meg")
{
gotoAndStop("Left");
}
}
}
else
{
set("/Variables:Dir","Left");
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("Left");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
{
if(eval("/Variables:Run") == true)
{
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
}
setProperty("_root.Meg", _X, _root.Meg._x - eval("/Variables:Delta"));
}
}
}
if(Key.isDown(Key.UP) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
{
set("/Variables:Dir","Right");
if(Key.isDown(Key.CONTROL))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("Up");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.DOWN) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
{
set("/Variables:Dir","Down");
if(Key.isDown(Key.CONTROL))
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
Idle = false;
set("/Variables:Stoppe",true);
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("DOWN");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.UP) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Down))
{
set("/Variables:Dir","Right");
if(Key.isDown(Key.CONTROL))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("UpRight");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.UP) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Down))
{
set("/Variables:Dir","Left");
if(Key.isDown(Key.CONTROL))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("UpLeft");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.Down) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Up))
{
set("/Variables:Dir","Left");
if(Key.isDown(Key.CONTROL))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("DownLeft");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.Down) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
{
set("/Variables:Dir","Right");
if(Key.isDown(Key.CONTROL))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
else
{
if(Idle == true)
{
tellTarget("_root.Meg/Obj")
{
gotoAndStop(1);
}
Idle = false;
}
tellTarget("_root.Meg")
{
gotoAndStop("DownRight");
}
tellTarget("_root.Meg/Obj")
{
nextFrame();
}
if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
{
if(eval("/Variables:Run") == true)
{
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
}
}
}
if(Key.isDown(Key.CONTROL) and !Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
{
Idle = false;
set("/Variables:Stoppe",true);
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Saute");
play();
}
}
if(Trou.hitTest(_root.Meg._x,_root.Meg._y,true) == true)
{
set("/Variables:DeltaTombe",eval("/Trou:Niveau"));
tellTarget("_root.Meg")
{
gotoAndStop("Tombe");
}
set("/Variables:Stoppe",true);
}
}
}
if(eval("/Variables:AssassinGtsBouge") == true and eval("/Variables:Stoppe") != true and eval("/Variables:InventaireOuvert") != true)
{
tellTarget("_root.Gts.Garde")
{
play();
}
}
else
{
tellTarget("_root.Gts.Garde")
{
stop();
}
}
setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _X, _root.Meg._x);
setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _Y, _root.Meg._y);
}